package com.pd.builder;

/**
 * Created with IntelliJ IDEA.
 * User: 5
 * Date: 17-3-17
 * Time: 上午11:28
 */
public class Director {
    private CarBuilder builder;

    public Director(CarBuilder builder) {
        this.builder = builder;
    }

    public Car createCar(){
        builder.bulidDoor();
        builder.bulidEnginee();
        builder.bulidWheels();
        return builder.createCar();
    }
}
